@prefix-cls: user-manage;

.overflow() {
  overflow-y: hidden;
  overflow-x: hidden;
}

.displayDirection() {
  display: flex;
  flex-direction: column;
}

.@{prefix-cls} {
  &-row {
    width: 100%;
    height: 100%;
    // .overflow();
    overflow: hidden;
    position: relative;
    margin: 0px !important;

    .ant-col-6 {
      padding-left: 0px !important;
    }

    .ant-col-18 {
      padding-right: 0px !important;
    }
  }

  &-user-col {
    width: 100%;
    height: 100%;
    .overflow();
    // position: initial;
  }

  &-right-title-col {
    width: 100%;
    // height: 18%;
    .overflow();
  }

  &-right-content-col {
    width: 100%;
    height: 88%;
    .overflow();
  }

  &-col-div-box {
    width: 100%;
    height: 100%;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  &-treeLeft {
    &-box {
      width: 100%;
      height: 100%;
      background: #ffffff;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    &-header {
      width: 100%;
      display: flex;
      // padding: 12px;
      padding: 8px 16px;
      justify-content: space-between;
    }

    &-option {
      display: flex;
      align-items: center;
    }

    &-body {
      flex: auto;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      // padding: 0px 12px 12px 12px;
      width: 100%;

      &-searchInput {
        padding: 0rem 1rem 0.5rem;
      }
    }

    &-child {
      flex: auto;
      overflow: hidden;

      .ant-tree-node-content-wrapper {
        overflow: hidden;
        width: 100%;
      }
    }
  }

  &-tableRight {
    &-box {
      width: 100%;
      height: 100%;
      background: #ffffff;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    &-header {
      width: 100%;
      display: flex;
      padding: 0.5rem 1rem;
      align-items: center;
      justify-content: space-between;

      &-formDiv {
        .ant-form {
          .ant-form-item {
            margin-bottom: 0px;
          }
        }
      }
    }

    &-search {
      display: flex;
      align-items: center;

      .ant-input-search {
        .ant-btn {
          border-color: #d9d9d9;
        }
      }
    }

    &-searchRow {
      padding: 0rem 1rem 0.5rem;
      width: 100%;
      display: flex;
      justify-content: space-between;
    }

    &-content {
      flex: auto;
      overflow: hidden;
      // padding: 0px 12px 12px 13px;
    }

    &-contentTitle {
      padding: 0rem 1rem 0.5rem;
      display: flex;
      justify-content: space-between;
    }
  }

  &-addEditModalStyle {
    .ant-modal-footer {
      border-top: 0px;
    }
  }

  // 模态框内部元素样式
  &-modalChildren {
    height: 100%;
    .displayDirection();
    .overflow();

    &-stepCurrent {
      padding: 0.75rem 2rem;
    }
  }

  // 其他步骤 card 组件样式
  &-userSecopeCard {
    .ant-card-head {
      padding: 0px 10px;
      background-color: #f1f1f1;
      margin-bottom: 1px;

      .ant-card-head-title {
        padding: 8px 0px;
      }
    }

    .ant-card-body {
      padding: 0px;
    }

    .ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper {
      color: #717171;
      align-items: center;
      overflow: hidden;
    }

    .ant-tree-node-content-wrapper {
      align-items: center;
      overflow: hidden;
      color: #000;
    }

    &-rightFather {
      padding: 5px 10px 0px 10px;
    }

    &-rightChild {
      width: 100%;
      background-color: #409eff0a;
      border-radius: 4px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #409eff;
      border: 1px solid rgba(160, 207, 255, 1);
    }

    &-rightChildFalse {
      width: 100%;
      background-color: #eb2f9612;
      border-radius: 4px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #ff0000;
      border: 1px solid #ff0000;
    }

    &-rightChild:hover {
      box-shadow: 0 1px 2.5px 0 rgba(0, 0, 0, 0.18);
    }

    &-rightChildIcon {
      display: flex;
      align-items: center;
    }
  }

  //设置角色卡片样式
  &-userRoleCard {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    .ant-card-body {
      flex: auto;
      overflow: hidden;
      height: 50%;
    }

    &-checkRoleRow {
      padding: 5px;
      width: 100%;
      display: flex;
      justify-content: space-between;
      color: #409eff;
      border: 1px solid #a0cfff;
      background-color: #409eff0a;
      border-radius: 4px;

      &-rowItemCls {
        display: flex;
        flex: auto;
        overflow: hidden;
      }
    }

    &-checkRoleRow:not(:last-child) {
      margin-bottom: 5px;
    }

    &-checkRoleRow:hover {
      box-shadow: 0 1px 2.5px 0 rgba(0, 0, 0, 0.18);
    }
  }

  // 其他步骤 card 组件样式
  &-userInfoPosStyle {
    .ant-card-head {
      padding: 0px 10px;
      background-color: #f1f1f1;
      margin-bottom: 1px;

      .ant-card-head-title {
        padding: 8px 0px;
      }
    }

    .ant-card-body {
      padding: 0px;
    }

    .ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper {
      color: #717171;
      align-items: center;
      overflow: hidden;
    }

    .ant-tree-node-content-wrapper {
      align-items: center;
      overflow: hidden;
      color: #000;
    }

    &-detailCard {
      width: 100%;
      box-sizing: border-box;
      display: grid;
      grid-template-columns: repeat(2, 49%);
      grid-gap: 0.5rem;
    }

    &-detailCardChild {
      padding: 5px 10px;
      text-align: center;
      background-color: #409eff0a;
      border-radius: 4px;
      color: #409eff;
      border: 1px solid rgba(160, 207, 255, 1);
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
}

.user-popover {
  // max-width: 15%;
  border-radius: 14px;

  .ant-popover-inner {
    border-radius: 14px;

    .ant-popover-title {
      text-align: center;
      // font-size: 16px;
      font-weight: 600;
      border-bottom: 1px dashed #fff;
    }
  }

  .ant-popover-arrow-content::before {
    background: linear-gradient(to left, rgb(222 222 222) 50%, rgb(222 222 222) 50%) no-repeat -10px -10px;
  }

  p {
    margin-bottom: 5px;
    word-break: break-all;
  }
}

.userDetailInfoStyle {
  :global {
    .ant-descriptions-view {
      border-radius: 0;

      .ant-descriptions-row {
        .ant-descriptions-item-label {
          word-break: keep-all;
          white-space: nowrap;
        }

        .ant-descriptions-item-content {
          word-break: break-all;
          display: inline-block;
          width: 216px;
        }
      }
    }
  }
}

.ImgStyle {
  width: 116px;
  // height: 126px;
  height: 135px;
  // background-image: url('/image/manImg.jpg');
  // background-size: 100%;
  // background-repeat: repeat;
  // float: left;
  // display: flex;
  // justify-content: center;
  // align-items: center;

  img {
    width: 100%;
    height: 100%;
  }
}

.TextStyle {
  // height: 126px;
  height: 135px;
  width: 100%;
  display: inline-block;

  :global {
    .ant-descriptions-view table {
      // height: 126px;
      height: 135px;
    }

    .ant-descriptions-item-label {
      // width: 268px;
      width: 215px;
    }
  }
}

.TextStyleCopy {
  :global {
    .ant-descriptions-item-label {
      width: 115px;
    }
  }
}

.TextStyleCopyContent {
  width: 146px;
}
